package com.wwwc.admin.web.database;

import java.io.*;
import java.util.*;

public class DatabaseAdapter {

    public static Database getDatabase (String database, ResourceBundle SystemInfo) 
    {
	String db_url    = SystemInfo.getString("3wcenter.database."+database+".db_name");
	String db_driver = SystemInfo.getString("3wcenter.database."+database+".driver_name");
	String db_user   = SystemInfo.getString("3wcenter.database."+database+".user_name");
	String db_pass   = SystemInfo.getString("3wcenter.database."+database+".pass_word");
	
	Database db = new Database ();
	db.setDataBaseName(db_url);
	db.setDriverName(db_driver);
	db.setUserName(db_user);
	db.setPassword(db_pass);
	return db;
    }
}








